package com.chenxiao.mybatisplus.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chenxiao.mybatisplus.entity.OrderDto;
import lombok.Data;
import org.springframework.stereotype.Controller;

@Controller
public class BaseController{
   public static final Long PageSize  = 8L;
   public static final Long CurrentPage = 1L;

   public IPage doPage(Long PageSize, Long currentPage){
       return  new Page<>(currentPage, PageSize);
   }
    public IPage doPage(Long currentPage){
        return  new Page<>(currentPage, PageSize);
    }
}
